/*
 * Copyright (c) 2017. 深圳一七科技. All rights reserved.
 */

package com.yiqi.liebang.feature.news.contract;

import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.liebang.entity.bo.MessageBo;
import com.yiqi.liebang.entity.bo.PageBo;
import com.yiqi.liebang.entity.bo.MessageBo;

import java.util.List;

import io.reactivex.Observable;

/**
 * LIJUWEN
 *
 * @email yiyayiyayaoljw@gmail.com
 * @date 2018/7/11 9:06
 */
public interface MessageContract {

    interface Model {

        Observable<List<MessageBo>> getMessageList(PageBo pageBo);

    }

    interface View extends BaseView {


        void showListSuccess(List<MessageBo> workBoPageData);

        void showMessageListError(String error);

        void showMessageListMoreSuccess(List<MessageBo> msg);

        void showMessageListMoreError(String msg);

        void showMessageListEmpty();
    }


    interface Presenter extends BasePresenter {

        void getMessageList(
                int pageIndex,
                int pageSize
        );

        void getMessageListMore(
                int pageIndex,
                int pageSize
        );
    }
}
